<template>
  <div class="order">
    <div style="width:10%;">
      <el-menu
        :default-active="active"
        router
        class="el-menu-vertical-demo"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
      >
        <el-menu-item index="/order/orderguanli">
          <i class="el-icon-menu"></i>
          <span slot="title">订单管理</span>
        </el-menu-item>
        <el-menu-item index="/order/fapiao">
          <i class="el-icon-document"></i>
          <span slot="title">发票管理</span>
        </el-menu-item>
        <el-menu-item index="/order/shouhou">
          <i class="el-icon-setting"></i>
          <span slot="title">售后服务</span>
        </el-menu-item>
      </el-menu>
    </div>
    <div style="width: 90%;">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      active: this.$route.path
    };
  },
  methods: {},
  created() {},
  mounted() {},
};
</script>

<style scoped>
.order {
  display: flex;
}
</style>